package com.bort.system.view;

import javafx.scene.control.Button;
import javafx.scene.control.TextField;
import javafx.scene.layout.HBox;
import lombok.Data;

@Data
public class PlayerItemView extends HBox {

    private TextField playerName;

    private Button remove;

    public PlayerItemView() {
        this.setSpacing(5);
        this.setMaxWidth(337);
        this.setPrefWidth(337);
        this.setPrefHeight(20);
        playerName = new TextField();
        playerName.setPrefHeight(20);
        playerName.setPrefWidth(180);
        this.getChildren().add(playerName);
        remove = new Button("-");
        remove.setStyle("-fx-font-size: 12");
        remove.setPrefHeight(20);
        remove.setPrefWidth(25);
        this.getChildren().add(remove);
    }
}
